#include <bits/stdc++.h>
using namespace std;
using uint=unsigned int;
using ll=long long;
using ull=unsigned long long;
using i128=__int128;
const int N=1e5+5;

double l[10010];
int n,k;

bool check(double num){
    int cnt=0;
    for(int i=0;i<n;i++){
        cnt+=(int)(l[i]/num);
    }
    return cnt>=k;
}

void solve(){
    cin>>n>>k;
    for(int i=0;i<n;i++){
        cin>>l[i];
    }
    double l=0,r=N;
    for(int i=0;i<100;i++){
        double mid=l+(r-l)/2;
        if(check(mid)){
            l=mid;
        }else{
            r=mid;
        }
    }
    printf("%.2f\n",l);
    return;
}

int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
    solve();

    return 0;
}